FROM node:20.12.2

EXPOSE 3000

WORKDIR /opt/sites/game_videos_manager

COPY . .

RUN ["npm", "i", "-g", "pnpm", "nrm"]

RUN ["nrm", "use", "tencent"]

RUN ["pnpm", "i"]

#CMD ["tail", "-f", "/dev/null"]

CMD ["node", "./packages/backend/dist/main.js"]
